package org.example.chainOfResponsibility.correctMethod;

/**
 * @author weigang
 * @create 2022-07-26 10:17
 */
public abstract class AbstractHandler {

    /**
     * 下一关用当前抽象类来接收
     */
    protected AbstractHandler next;

    public void setNext(AbstractHandler next) {
        this.next = next;
    }

    public abstract int handler();

}
